<?php

/***************************************************************\
* FILE:		sys/pages/login.inc
* SECTION:	pages > plain login form
* FUNCTION:	
* USES:	
* INCLUDES:		
* PRODUCES:	
* LAUNCHES:	
\***************************************************************/

/**
 * adds extra access checks, dependent on page state
 */
function page_inc_check_access() {
	//check_access("VIEW");
}


/**
 * execute page logic
 */
function page_inc_execute() {
	global $PAGE;
	$inputs = array();
	$inputs[] = form_info("<a href=.resetpassword>Paswoord vergeten ?</a><br/><a href=.register?action=add>Nog niet geregistreerd?</a>");
	$inputs[] = form_input_field("Wachtwoord", "password", '', 20, 20, "", 0, 1);
	$inputs[] = form_input_field("Gebruikersnaam", "login");
	$inputs[] = form_header("Vul je gebruikersgegevens in");
	$PAGE['content']['form'] = form_create('loginform', $inputs, "{$PAGE['dirpath']}?action=login");
	$PAGE['content']['body'] = "";
	$PAGE['content']['title'] = "Inloggen";
}


/**
 * dress up page content using skin stuff
 */
function page_inc_dress() {
	global $PAGE;
	print_form($PAGE['content']['form']);
	print_body($PAGE['content']['body']);
}

?>